package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.ISysCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 岗位信息操作处理
 *
 * @author zy
 */
@RestController
@RequestMapping("/system/position")
public class SysPositionController extends BaseController {
    @Autowired
    private ISysCommonService sysCommonService;

    /**
     * 根据岗位类型获取岗位等级选项（子节点）
     */
    @GetMapping("/getPositionLevelOption/{positionIds}")
    public AjaxResult getPositionLevelOption(@PathVariable Long positionIds) {
        return AjaxResult.success(sysCommonService.getPositionLevelOption(positionIds));
    }
}
